package com.light.gulimall.product.feign;

import com.light.common.vo.WareStockVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 远程调用ware模块
 */
@FeignClient(name = "gulimall-ware", url = "http://localhost:88")
public interface WareRemoteServiceClient {

    @RequestMapping("/api/ware/waresku/queryWareStock")
    List<WareStockVO> queryWareStock(@RequestBody List<Long> skuIds);
}
